/* eslint-disable default-case */
import {fromJS} from 'immutable'
import {GET_LIST_DATA} from './actionCreator'
// import {GET_BANNER_DATA} from './actionCreator'
const defaultStore = fromJS({
    listData: [],
    bannerlistData:[]
})

export default (state = defaultStore, action) => {
    // console.log(action)
    switch (action.type) {
        case GET_LIST_DATA:
            return state.update('listData', (x) => x.concat(fromJS(action.res)))
            // console.log(state);  
        
    };
    return state;
}